.class Lcom/waiqin365/lightapp/syorder/view/z;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/syorder/view/w;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/syorder/view/w;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->Q:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->M:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/b/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->b(Lcom/waiqin365/lightapp/b/b;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->L:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->M:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->h:Ljava/util/List;

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/b/b;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->M:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->f()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->l()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitcache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->l()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v2, v2, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->m()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Ljava/lang/String;Ljava/lang/String;)Z

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/view/w;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->P:Lcom/waiqin365/lightapp/syorder/view/ac;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/view/z;->a:Lcom/waiqin365/lightapp/syorder/view/w;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/w;->a:Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->P:Lcom/waiqin365/lightapp/syorder/view/ac;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/syorder/view/ac;->a()V

    :cond_1
    return-void
.end method
